package xyz.scootaloo.util;

import java.util.Objects;

/**
 * 断言
 *
 * @author flutterdash@qq.com
 * @since 2021/3/21 22:55
 */
public class Assert {

    public static void requireNonNull(Object o) {
        Objects.requireNonNull(o);
    }

    public static void requireNonNull(Objects ... objects) {
        Objects.requireNonNull(objects);
        for (Object obj : objects)
            Objects.requireNonNull(obj);
    }

}
